# -*- coding: utf-8 -*-
# @Time : 2021/5/18 11:03 
# @Author : for 
# @File : bg_admin.py
# @Motto: good good study,day day up

from flask_admin.contrib.sqla import ModelView
from flask_babelex import Babel
from watchlist import app, admin, db
from watchlist.models import User, Movie

babel = Babel(app)
app.config['BABEL_DEFAULT_LOCALE'] = 'zh_CN'

admin.add_view(ModelView(User, db.session, name='用户管理'))
admin.add_view(ModelView(Movie, db.session, name='电影'))
